package com.sykj.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.sykj.bean.card.CardGameProduct;
import com.sykj.mapper.CardGameProductMappr;
import com.sykj.service.CardGameProductService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: hongbao
 * @description:
 * @author: qiaoli
 * @create: 2020-08-05 17:20
 */
@Service
public class CardGameProductServiceImpl extends ServiceImpl<CardGameProductMappr, CardGameProduct> implements CardGameProductService {

    @Override
    public List<CardGameProduct> selectByExample(Integer gameid) {
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("gameid",gameid);
        List list = this.baseMapper.selectList(queryWrapper);
        return list;
    }
}
